<?php 
$projectTypeArr = array(
		'Dike-Levees' => Yii::t('project','Dike-Levees'),
		'Dike-Connecting buildings' => Yii::t('project','Dike-Connecting buildings'),
		'Dike-Management Facilities' => Yii::t('project','Dike-Management Facilities'),
		'Diversion-Channel' => Yii::t('project','Diversion-Channel'),
		'Diversion-Buildings' => Yii::t('project','Diversion-Buildings'),
		'Diversion-Lock' => Yii::t('project','Diversion-Lock'),
		'Diversion-Management Facilities' => Yii::t('project','Diversion-Management Facilities'),
)
?>

<div class="row-fluid">
	<div class="span12">
		<?php $form=$this->beginWidget('bootstrap.widgets.TbActiveForm',array(
							'id'=>'project-describe-form',
							'enableAjaxValidation'=>false,
		)); ?>

		<?php echo $form->errorSummary($model); ?>
	
		<?php echo $form->labelEx($model,'county_id');?>
		<?php echo $form->dropDownList($model, 'county_id', CHtml::listData(County::model()->findAll(), 'id', 'name')); ?>	
	
		<?php echo $form->textFieldRow($model,'name',array('class'=>'span6','maxlength'=>48)); ?>
		
		<?php echo $form->labelEx($model,'type');?>
		<?php echo $form->dropDownList($model, 'type', $projectTypeArr); ?>
		
		<?php echo $form->textAreaRow($model,'description',array('class'=>'span6','maxlength'=>148)); ?>
	
		<div class="form-actions">
			<?php $this->widget('bootstrap.widgets.TbButton', array(
				'buttonType'=>'link',
				'type'=>'link',
				'url'=>$model->isNewRecord ? array('site/index') : array('project/status', 'id'=>$model->id),
				'label'=>Yii::t('common','Cancel'),
			)); ?>
			<?php $this->widget('bootstrap.widgets.TbButton', array(
				'buttonType'=>'submit',
				'type'=>'primary',
				'label'=>$model->isNewRecord ? Yii::t('common','Create') : Yii::t('common','Save and Next'),
			)); ?>
		</div>
	
		<?php $this->endWidget(); ?>
	</div>
</div>